Skip to content

Mega share and clone repo by ZTM#469

Merged
genedna merged 6 commits into
gitmono-dev:mainfrom
wujian0327:main
Jul 22, 2024
Merged

Mega share and clone repo by ZTM#469
genedna merged 6 commits into
gitmono-dev:mainfrom
wujian0327:main

Conversation

@wujian0327

Copy link
Copy Markdown
Contributor

Mega clone and share repo by ZTM

1. How to clone repo by ZTM

1.1 Start a local Mega Server with bootstrap-node

cargo clean
cargo run --bin mega service http --ztm agent --bootstrap-node http://34.84.172.121/relay

1.2 Query the shared Repo through Relay

[34.84.172.121/relay/repo_list](http://34.84.172.121/relay/repo_list)

image-20240721193304199

1.3 Open a local port pointing to other Mega repository

Using the http GET API

http://localhost:8000/api/v1/ztm/repo_folk?identifier=p2p://nX7NRgitx7wUwAiJXxAVcec4iAoV8YwbzUn8FqwfFR4J/8000/third-part/model-cards.git&port=8083

image-20240721193933831

1.4 Clone the remote repository

 git clone http://localhost:8082/third-part/git_study.git

image-20240721194205215

2. How share repo by ZTM

Using the http GET API

http://localhost:8000/api/v1/ztm/repo_provide?path=/third-part/your_repo

@vercel

vercel Bot commented Jul 21, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mega ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 21, 2024 11:49am

@genedna
genedna added this pull request to the merge queue Jul 22, 2024
Merged via the queue into gitmono-dev:main with commit 7c7cb09 Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants